export default {
  isAvailable: function (context, params) {
    var _this = this;
    if (params) {
      if (params != null && params != '' && params != {}) {

        if (typeof params == 'string') {
          params = JSON.parse(params);
        }
        if (params.result != undefined) {
          return true;
        } else {
          console.log("Params's result key is undefined!");
          return false;
        }

      } else {
        console.log('Params is null!');
        return false;
      }
    } else {
      console.log('Params is undefined!');
      return false;
    }
  },
}